import { SysCustomWidgetType, OnlineFormEventType } from '@/common/staticDict/index';

const map = {
  span: {
    name: '组件宽度',
    widgetType: SysCustomWidgetType.Slider,
    value: 12,
    disabled: false,
    min: 1,
    max: 24,
  },

  height: {
    name: '地图高度',
    value: '200px',
    widgetType: SysCustomWidgetType.Input,
  },

  disabled: {
    name: '是否禁用',
    value: false,
    widgetType: SysCustomWidgetType.Switch,
    dropdownList: [
      {
        id: false,
        name: '启用',
      },
      {
        id: true,
        name: '禁用',
      },
    ],
  },
};

const mapConfig = {
  widgetType: SysCustomWidgetType.MAP,
  icon: 'online-icon icon-map',
  attribute: map,
  allowEventList: [
    OnlineFormEventType.CHANGE,
    OnlineFormEventType.DISABLE,
    OnlineFormEventType.VISIBLE,
  ],
  supportBindTable: true,
  supportBindColumn: true,
};

export default mapConfig;
